cordova.define("com.foreveross.chameleon.user.plugin.ModuleOperationPlugin", function(require, exports, module) { 
var exec = require("cordova/exec");
var moduleoperation = {

	//获取已安装的模块列表
	getInstalledModuleList:function(succ,fail) {
		exec(succ,fail,"ModuleOperation","getInstalledModuleList",[]);
	},
	//获取未安装的的模块列表
	getUninstallModuleList:function(succ,fail) {
		exec(succ,fail,"ModuleOperation","getUninstallModuleList",[]);
	},
	//获取待升级的模块列表
	getUpgradeableModuleList:function(succ,fail) {
		exec(succ,fail,"ModuleOperation","getUpgradeableModuleList",[]);
	},
	//安装模块
	installModule:function(succ,fail,identify) {
		exec(succ,fail,"ModuleOperation","installModule",[identify]);
	},
	//升级模块
	upgradeModule:function(succ,fail,identify) {
		exec(succ,fail,"ModuleOperation","upgradeModule",[identify]);
		
	},
	//删除模块
	deleteModule:function(succ,fail,identify) {
		exec(succ,fail,"ModuleOperation","deleteModule",[identify]);
	},
	//获取所有模块
	getAllModuleList:function(succ,fail) {
		exec(succ,fail,"ModuleOperation","getAllModuleList",[]);
	},
	checkAppUpdate:function() {
		exec(succ,fail,"ModuleOperation","checkAppUpdate",[]);
	},
	//测试接口，忽略
	test:function(succ,fail,identify) {
		exec(succ,fail,"ModuleOperation","test",[identify]);
	}
};


module.exports = moduleoperation;


});